package com.xboard.server.dao;

import java.util.List;
import java.util.Map;

import com.google.appengine.api.datastore.Entity;
import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.Query;

public interface FxDao {
	public void addFx(Map<String, Object> Fx);
	public void addTicket(Map<String, Object> Fx);
	public void addChart(Map<String, Object> Fx);
	public void addCmd(Map<String, Object> Fx);
	public void addAccount(Map<String, Object> Fx);
	
	public List<Map<String,Object>> listFx();	
	public List<Map<String,Object>> listHistory();
	public List<Map<String,Object>> listHistory(String symbol);
	public List<Map<String,Object>> listAccount();
	public List<Map<String,Object>> chart(String symbol);
	
	public Map<String,Object> getFx(String id);
	public Map<String,Object> getCmd(String id);
	public Key getKey(String table, String name, String value);
	public Entity getEntity(String table, String name, String value);
	
	public void updateFx(Map<String, Object> Fx);	
	public void updateTicket(Map<String, Object> Fx);
	public void updateAccount(Map<String, Object> Fx);
	public void updateCmd(Map<String, Object> Fx);
	

	public void deleteFx(String symbol);
	public void delChart(String symbol);
	public void deleteCmd(String symbol);
	public void deleteFx(String table, String name, String value);
}